// Store.ts
const Store = {
    /**
     * 向缓存中存
     * @param key key   键
     * @param value value  值
     */
    set(key:string,value:Object){
        sessionStorage.setItem(key,JSON.stringify(value));
    },

    /**
     * 从缓存中拿
     * @param key 键
     */
    get(key:string):any{
        return JSON.parse(<string>sessionStorage.getItem(key));
    },
}
export default Store